home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Developer Utilities / Installer 4.0.3 SDK / DeveloperInterfaces / CIncludes / TargetInfoMgt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-15  |  1.4 KB  |  66 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        TargetInfoMgt.h
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Written by:    Kevin Aitken
  7.  
  8.     Copyright:    © 1993 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <4>      5/9/94    KBA        Added Mod. Data field to info record.
  13.          <3>     4/17/94    KBA        Updated the file version parameter block to include the type and
  14.                                     creator so we can find files in the archive that have the same
  15.                                     name.
  16.          <2>    10/28/93    KBA        Added field to hold the type of data ScriptCheck is expecting.
  17.          <1>    10/14/93    KBA        first checked in
  18.  
  19. */
  20.  
  21.  
  22.  
  23. #ifndef __TargetInfoMgt__
  24. #define __TargetInfoMgt__
  25.  
  26. #ifndef __Files__
  27. #include <Files.h>
  28. #endif
  29.  
  30.  
  31. typedef struct {
  32.     FSSpec            fSrcFSSpec;
  33.     long            fSrcDataType;
  34.     Str31            fTgtFileName;
  35.     short            fTgtFinderAttrs;
  36.     long            fTgtDataForkSize;
  37.     long            fTgtRsrcForkSize;
  38.     long            fTgtCreationDate;
  39.     ResType            fTgtFileType;        // Not supported in 4.0.0
  40.     ResType            fTgtFileCreator;    // Not supported in 4.0.0
  41.     long            fTgtModDate;        // Not supported in 4.0.0
  42. } TgtFileInfoType;
  43.  
  44. typedef struct {
  45.     FSSpec            fSrcFSSpec;
  46.     long            fSrcDataType;
  47.     OSType            fSrcRsrcType;    
  48.     short            fSrcRsrcID;
  49.     OSType            fTgtRsrcType;    
  50.     short            fTgtRsrcID;
  51.     short            fTgtRsrcAttrs;
  52.     long            fTgtRsrcSize;
  53. } TgtRsrcInfoType;
  54.  
  55. typedef union {
  56.     TgtFileInfoType            fFileInfo;
  57.     TgtRsrcInfoType            fRsrcInfo;
  58. } TargetInfoPB, *TargetInfoPBPtr;
  59.  
  60. #define    kDataTypeIsFile    -1
  61. #define    kDataTypeIsRsrc    1
  62.  
  63. typedef long    (*TargetInfoProcPtr)( TargetInfoPBPtr );        
  64.                             
  65. #endif
  66.